package org.jeecgframework.web.service;
import org.jeecgframework.core.common.service.CommonService;
import org.jeecgframework.web.system.pojo.base.CbsReturnEquipmentEntity;
import org.jeecgframework.web.system.pojo.base.TSUser;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.Serializable;

public interface CbsReturnEquipmentServiceI extends CommonService{
	
 	public <T> void delete(T entity);
 	
 	public <T> Serializable save(T entity);
 	
 	public <T> void saveOrUpdate(T entity);
 	
 	/**
	 * 默认按钮-sql增强-新增操作
	 * @param id
	 * @return
	 */
 	public boolean doAddSql(CbsReturnEquipmentEntity t);
 	/**
	 * 默认按钮-sql增强-更新操作
	 * @param id
	 * @return
	 */
 	public boolean doUpdateSql(CbsReturnEquipmentEntity t);
 	/**
	 * 默认按钮-sql增强-删除操作
	 * @param id
	 * @return
	 */
 	public boolean doDelSql(CbsReturnEquipmentEntity t);

	/*
	 * 导出excel
	 * */
	void exportReturnList(HttpServletRequest request, HttpServletResponse response);

	void updateLogistics (String id,String logistics);

	/**
	 * 返件申请日志
	 * @param id
	 * @param description
	 * @param user
	 */
	public void createReturnLog(String id, String description, TSUser user);
}
